package com.saicmotor.hk2.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface CommonMapper {
    Integer checkTableBySchema(@Param("tableSchema") String tableSchema, @Param("tableName") String tableName);

    Map<String,String> checkTableBySql(@Param("tableName") String tableName);

    Integer getIdByName(@Param(value = "tableName") String tableName,String name);

    String getNameById(@Param(value = "tableName") String tableName,int id);

}
